package com.insigma.business.qrcode.common.util;

import com.insigma.business.common.utils.PriInfoHandleUtil;
import com.insigma.business.qrcode.soldier.dto.SoldierApplyInfoDTO;

public class DecryptDTOUtils {
    public static void decryptSoldierApplyInfoDTO(SoldierApplyInfoDTO soldierApplyInfoDTO) {
        if (soldierApplyInfoDTO != null) {
            soldierApplyInfoDTO.setIdCardNo(PriInfoHandleUtil.decrypt(soldierApplyInfoDTO.getIdCardNo()));
            soldierApplyInfoDTO.setMobile(PriInfoHandleUtil.decrypt(soldierApplyInfoDTO.getMobile()));
            soldierApplyInfoDTO.setHoldIdCardNo(PriInfoHandleUtil.decrypt(soldierApplyInfoDTO.getHoldIdCardNo()));
            soldierApplyInfoDTO.setHoldMobile(PriInfoHandleUtil.decrypt(soldierApplyInfoDTO.getHoldMobile()));
        }
    }
}
